local GREEN = "|cff00ff00"
local LTBLUE = "|cffa0a0ff"
local SILVER = "|cffc0c0c0"

function debugerpbuff()
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== Player Buff's ======")
	for i=1,100 do
		local n,_,_,id=UnitBuff("player",i)
		if n then
			DEFAULT_CHAT_FRAME:AddMessage(SILVER..""..n.." = "..id)
		else 
			DEFAULT_CHAT_FRAME:AddMessage(LTBLUE.."====== End of Buff's ======")
			break
		end
	end
end

function debugerpdebbuff()
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== Player DeBuff's ======")
	for i=1,100 do
		local n,_,_,id=UnitDebuff("player",i)
		if n then
			DEFAULT_CHAT_FRAME:AddMessage(SILVER..""..n.." = "..id)	
		else
			DEFAULT_CHAT_FRAME:AddMessage(LTBLUE.."====== End of DeBuff's ======")
			break
		end
	end
end

function debugertbuff()
	local tname = UnitName("target")
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== "..tname.." Buff's ======")
	for i=1,100 do
		local n,_,_,id=UnitBuff("target",i)
		if n then
			DEFAULT_CHAT_FRAME:AddMessage(SILVER..""..n.." = "..id)	
		else
			DEFAULT_CHAT_FRAME:AddMessage(LTBLUE.."====== End of Buff's ======")
			break
		end
	end
end

function debugertdebuff()
	local tname = UnitName("target")
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== "..tname.." DeBuff's ======")
	for i=1,100 do
		local n,_,_,id=UnitDebuff("target",i)
		if n then
			DEFAULT_CHAT_FRAME:AddMessage(SILVER..""..n.." = "..id)	
		else
			DEFAULT_CHAT_FRAME:AddMessage(LTBLUE.."====== End of DeBuff's ======")
			break
		end
	end
end

function CE_ShowHotKeys()
	local key, pos, frame, info, button, hotkey
	for key, pos in pairs({"Main", "Right", "Left", "Bottom"}) do
		frame=getglobal(pos.."ActionBarFrame")
		--info = ActionBarInfo[frame:GetID()];
		for i = 1, ACTIONBAR_NUM_BUTTONS do
			button = getglobal(frame:GetName().."Button"..i);
			--if ( i <= info.count ) then			
				hotkey = getglobal(button:GetName().."Hotkey");
				hotkey:SetText(i+frame:GetID()*20-20);
			--end
		end
	end
end

function CE_HideHotKeys()
	local key, pos, frame
	for key, pos in pairs({"Main", "Right", "Left", "Bottom"}) do
		frame=getglobal(pos.."ActionBarFrame")
		ActionBarFrame_Update(frame)
	end
end

function zonename()
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== Zone Name ======")
	DEFAULT_CHAT_FRAME:AddMessage(GetZoneLocalName(GetZoneID()));
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== Zone ID ======")
	DEFAULT_CHAT_FRAME:AddMessage(GetZoneID());
	DEFAULT_CHAT_FRAME:AddMessage(LTBLUE.."====== Region Name ======")
	DEFAULT_CHAT_FRAME:AddMessage(GetZoneName());
	DEFAULT_CHAT_FRAME:AddMessage(SILVER.."====== Ingame Zone Name ======")
	DEFAULT_CHAT_FRAME:AddMessage(GetZoneEnglishName(GetZoneID()));
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====================")
end

function titleid()
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."====== Curent Title ID ======")
	DEFAULT_CHAT_FRAME:AddMessage(GetCurrentTitle())
	DEFAULT_CHAT_FRAME:AddMessage(GREEN.."=========================")
end
